package com.sanbi.erp.db.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sanbi.erp.db.dao.ProductDetailMapper;
import com.sanbi.erp.db.domain.ProductDetail;
@Service
public class ProductDetailService{

    @Resource
    private ProductDetailMapper productDetailMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return productDetailMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ProductDetail record) {
        return productDetailMapper.insert(record);
    }

    
    public int insertSelective(ProductDetail record) {
        return productDetailMapper.insertSelective(record);
    }

    
    public ProductDetail selectByPrimaryKey(Integer id) {
        return productDetailMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ProductDetail record) {
        return productDetailMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ProductDetail record) {
        return productDetailMapper.updateByPrimaryKey(record);
    }

}
